import { submitOrder } from '@/api/order.js'
export default{
    state:{
        orderNumber:''
    },
    getters:{},
    mutations:{
        initOrder( state , order ){
            state.orderNumber = order;
        },
		async updateOrder( state ){
			let res = await submitOrder({orderId: state.orderNumber});
			// console.log(res, '更改订单状态');
			return res
		}
    }
}